﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 随机点名
{
    public class Student
    {   
        public static List<string> StuName=new List<string>();
        static Student()
        {
            string line;
            System.IO.StreamReader file = new System.IO.StreamReader("stu.txt");
            while ((line = file.ReadLine()) != null)
            {
                StuName.Add(line);
            }
            file.Close();
        }
        public override string ToString()
        {
            string result = "";
            foreach(string s in StuName)
            {
                if (result == "")
                {
                    result = result + s;
                }
                else
                {
                    result = result + "\n" + s;
                }                
            }
            return result;
        }
    }
    
}
